@extends('layouts.default')
@section('content') 
<div class="box">
    <header>
        <div class="icons">
            <i class="fa fa-table"></i>
        </div>
        <h5>{{ Lang::get('rentals.check_in') }}</h5>
    </header>
    <div id="collapse4" class="body">
        <table id="dataTable" class="table table-bordered table-condensed table-hover table-striped">
            <thead>
                <tr> 
                    <th>{{ Lang::get('rentals.drfirstname') }}</th>
                    <th>{{ Lang::get('rentals.drlastname') }}</th>
                    <th>{{ Lang::get('rentals.drpasportid') }}</th>
                    <th>{{ Lang::get('rentals.city') }}</th>
                    <th>{{ Lang::get('messages.make') }}</th>
                    <th>{{ Lang::get('messages.model') }}</th>
                    <th>{{ Lang::get('messages.license') }}</th>
                    <th>{{ Lang::get('rentals.startdate') }}</th>
                    <th>{{ Lang::get('rentals.enddate') }}</th>
                </tr>
            </thead>
            <tbody>
                @foreach ($values as $v)
                <tr>                                    
                    <td>{{ link_to_action('RentalController@check_in', isset($v->cfname)?$v->cfname:'', $v->rentalId)}}</td> 
                    <td>{{ $v->clname }}</td>  
                    <td>{{ $v->drpasportid }}</td> 
                    <td>{{ $v->ccity }}</td> 
                    <td>{{ $v->Make }}</td> 
                    <td>{{ $v->Model }}</td> 
                    <td>{{ $v->License }}</td> 
                    <td>{{ $v->STARTTIME }}</td>
                    <td>{{ $v->ENDTIME }}</td> 
                </tr>                                                            
                @endforeach
            </tbody>
        </table>
    </div>
</div>
@stop

